
message(STATUS "Configuring Messages...")

aux_source_directory(. LIB_SRCS)			# 添加当前目录下所有的源文件
get_property(BIN GLOBAL PROPERTY "BIN_DIR" ) 
if (debug STREQUAL "ON" OR debug STREQUAL "on")
    add_library (Messages STATIC ${LIB_SRCS})				# 当前目录下的文件生成一个静态链接库 
    # 显示INCLUDE_OPENCL 
    MESSAGE(STATUS "MESSAGE :${BIN}")
    install(TARGETS Messages
    ARCHIVE  DESTINATION ${BIN} 
    )
else()
    add_library (Messages SHARED ${LIB_SRCS})				# 当前目录下的文件生成一个动态链接库
    # 显示INCLUDE_OPENCL 
    MESSAGE(STATUS "MESSAGE :${BIN}")
    install(TARGETS Messages
    LIBRARY  DESTINATION ${BIN} 
    )
endif()
